﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewPro.ascx.cs" Inherits="WebControl_NewPro" %>

<div class="product">
    <img width="188" height="32" src="img/themes/676d05fa91444816.jpg" />
    <asp:Panel ID="panelNewPro" runat="server">
        <ul id="newPro" runat="server">
            
        </ul>
    </asp:Panel>
    <div id="divMsg" runat="server" style="text-align: center; padding: 5px 0 5px 0;">
    </div>
</div>

<script>
        var n = getname("li","p_li");
       function getname(tag, name){
       var returns = document.getElementsByName(name);
        if(returns.length > 0)
             return returns.length;
        returns = new Array();
       var e = document.getElementsByTagName(tag);
       for(var i = 0; i < e.length; i++){
          if(e[i].getAttribute("name") == name){
            returns[returns.length] = e[i];
            }
         }
         return returns.length;  
      }
      function over(i){
        for(var j=1;j<=n;j++){
            document.getElementById('pd'+j).style.display = "none";
        }
        document.getElementById("pd"+i).style.display = "block";
      } 
    </script>
